package com.kingtone.rongji.biz;

import java.io.Serializable;

/**
 *   {
      "EditDate": "/Date(1429080578000+0800)/",
      "EditUser": 3097,
      "EditUserName": "rjdx01",
      "InDate": "/Date(1413221253160+0800)/",
      "InUser": 1100,
      "InUserName": "admin",
      "Active": true,
      "ActualInventory": 54,
      "CategoryId": 4,
      "CategoryName": "礼品",
      "Cost": 0.01,
      "GroupID": 1,
      "Height": 1,
      "ImageName": "130622568466503622.jpg",
      "Length": 1,
      "LimitQuantity": 9999,
      "ManufactoryId": 2,
      "ManufactoryName": "蓉记鲜鲜鲜",
      "MarketPrice": 12,
      "ProductId": "10040002001",
      "ProductName": "小馍小样",
      "PromotionType": 70,
      "ReviewCount": 8,
      "Title": "小馍小样",
      "TotalInventory": 54,
      "UPCCode": " 30600-1            ",
      "UnitPrice": 0.01,
      "ViewDescription": "<ul><li><b>类型:</b>礼品</li><li><b>产地:</b>陕西</li><li><b>净含量:</b>175g</li></ul>",
      "WebSiteShow": true,
      "Weight": 0.33,
      "Width": 1
    }
 *
 */
public class Product implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -338629562051279256L;

	public String ViewDescription;

	public int TotalInventory;

	public String ManufactoryName;

	public double MarketPrice;

	public String CategoryName;

	public int ManufactoryId;

	public double UnitPrice;

	public String LineDescription;

	public String WebDescription;

	public int PromotionType;

	public double ShippingCharge;

	public String Title;

	public String ProductId;

	public String TSImageSet;

	public int LimitQuantity;

	public Boolean Active;

	public String ImageName;

	public int CategoryId;

	public String ProductName;

	public String UPCCode;

	public String EditDate;

	public String EditUser;

	public String EditUserName;

	public String InDate;

	public String InUser;

	public String InUserName;

	public int ActualInventory;

	public double Cost;

	public int GroupID;

	public double Height;

	public double Length;

	public int ReviewCount;

	public boolean WebSiteShow;

	public double Weight;

	public double Width;
	
	
	private int Quantity;
	
	private int GiftShippingType;

	public int getGiftShippingType() {
		return GiftShippingType;
	}

	public void setGiftShippingType(int giftShippingType) {
		GiftShippingType = giftShippingType;
	}

	public Product() {
		super();
	}

	public Product(String productId, String title, String productName, String imageName, double unitPrice, int quantity) {
		super();
		ProductId = productId;
		this.ProductName = productName;
		this.ImageName = imageName;
		this.UnitPrice = unitPrice;
		this.Quantity = quantity;
		this.Title = title;
	}

	public int getQuantity() {
		return Quantity;
	}

	public void setQuantity(int quantity) {
		this.Quantity = quantity;
	}

	public String getViewDescription() {
		return ViewDescription;
	}

	public void setViewDescription(String viewDescription) {
		ViewDescription = viewDescription;
	}

	public int getTotalInventory() {
		return TotalInventory;
	}

	public void setTotalInventory(int totalInventory) {
		TotalInventory = totalInventory;
	}

	public String getManufactoryName() {
		return ManufactoryName;
	}

	public void setManufactoryName(String manufactoryName) {
		ManufactoryName = manufactoryName;
	}

	public double getMarketPrice() {
		return MarketPrice;
	}

	public void setMarketPrice(double marketPrice) {
		MarketPrice = marketPrice;
	}

	public String getCategoryName() {
		return CategoryName;
	}

	public void setCategoryName(String categoryName) {
		CategoryName = categoryName;
	}

	public int getManufactoryId() {
		return ManufactoryId;
	}

	public void setManufactoryId(int manufactoryId) {
		ManufactoryId = manufactoryId;
	}

	public double getUnitPrice() {
		return UnitPrice;
	}

	public void setUnitPrice(double d) {
		UnitPrice = d;
	}

	public String getLineDescription() {
		return LineDescription;
	}

	public void setLineDescription(String lineDescription) {
		LineDescription = lineDescription;
	}

	public String getWebDescription() {
		return WebDescription;
	}

	public void setWebDescription(String webDescription) {
		WebDescription = webDescription;
	}

	public int getPromotionType() {
		return PromotionType;
	}

	public void setPromotionType(int promotionType) {
		PromotionType = promotionType;
	}

	public double getShippingCharge() {
		return ShippingCharge;
	}

	public void setShippingCharge(double shippingCharge) {
		ShippingCharge = shippingCharge;
	}

	public String getTitle() {
		return Title;
	}

	public void setTitle(String title) {
		Title = title;
	}

	public String getProductId() {
		return ProductId;
	}

	public void setProductId(String productId) {
		ProductId = productId;
	}

	public String getTSImageSet() {
		return TSImageSet;
	}

	public void setTSImageSet(String tSImageSet) {
		TSImageSet = tSImageSet;
	}

	public int getLimitQuantity() {
		return LimitQuantity;
	}

	public void setLimitQuantity(int limitQuantity) {
		LimitQuantity = limitQuantity;
	}

	public Boolean getActive() {
		return Active;
	}

	public void setActive(Boolean active) {
		Active = active;
	}

	public String getImageName() {
		return ImageName;
	}

	public void setImageName(String imageName) {
		ImageName = imageName;
	}

	public int getCategoryId() {
		return CategoryId;
	}

	public void setCategoryId(int categoryId) {
		CategoryId = categoryId;
	}

	public String getProductName() {
		return ProductName;
	}

	public void setProductName(String productName) {
		ProductName = productName;
	}

	public String getUPCCode() {
		return UPCCode;
	}

	public void setUPCCode(String uPCCode) {
		UPCCode = uPCCode;
	}

	public String getEditDate() {
		return EditDate;
	}

	public void setEditDate(String editDate) {
		EditDate = editDate;
	}

	public String getEditUser() {
		return EditUser;
	}

	public void setEditUser(String editUser) {
		EditUser = editUser;
	}

	public String getEditUserName() {
		return EditUserName;
	}

	public void setEditUserName(String editUserName) {
		EditUserName = editUserName;
	}

	public String getInDate() {
		return InDate;
	}

	public void setInDate(String inDate) {
		InDate = inDate;
	}

	public String getInUser() {
		return InUser;
	}

	public void setInUser(String inUser) {
		InUser = inUser;
	}

	public String getInUserName() {
		return InUserName;
	}

	public void setInUserName(String inUserName) {
		InUserName = inUserName;
	}

	public int getActualInventory() {
		return ActualInventory;
	}

	public void setActualInventory(int actualInventory) {
		ActualInventory = actualInventory;
	}

	public double getCost() {
		return Cost;
	}

	public void setCost(double cost) {
		Cost = cost;
	}

	public int getGroupID() {
		return GroupID;
	}

	public void setGroupID(int groupID) {
		GroupID = groupID;
	}

	public double getHeight() {
		return Height;
	}

	public void setHeight(double height) {
		Height = height;
	}

	public double getLength() {
		return Length;
	}

	public void setLength(int length) {
		Length = length;
	}

	public int getReviewCount() {
		return ReviewCount;
	}

	public void setReviewCount(int reviewCount) {
		ReviewCount = reviewCount;
	}

	public boolean isWebSiteShow() {
		return WebSiteShow;
	}

	public void setWebSiteShow(boolean webSiteShow) {
		WebSiteShow = webSiteShow;
	}

	public double getWeight() {
		return Weight;
	}

	public void setWeight(double weight) {
		Weight = weight;
	}

	public double getWidth() {
		return Width;
	}

	public void setWidth(int width) {
		Width = width;
	}
	
	public boolean isValidate() {
		return !this.Active || this.TotalInventory <= 0;
	}
}
